
#ifndef DESIGN_PATTERNS_OBSERVER_EVENT_H
#define DESIGN_PATTERNS_OBSERVER_EVENT_H

class Event
{
protected:
  const char* source_; // 消息来源
  const char* detail_; // 消息详情

public:
  virtual const char* get_source() const = 0;
  virtual const char* get_detail() const = 0;

  virtual ~Event() = default;
};
#endif //DESIGN_PATTERNS_OBSERVER_EVENT_H
